Skip to content

Conversation

@edwardzhou
Copy link

Call any custom command extension directly without adding new commands like 'getTextWithCommandExtension' 'dragAndDropWithCommandExtension'.

Once introduce a new extension in Flutter App like 'lib/drag_commands.dart' , it can be invoked from appium client immediately without any change to appium-flutter-driver.

example:

payload = {
  startX: 100,
  startY: 100,
  endX: 100,
  endY: 600",
  duration: 15000
}

driver.execute_script 'flutter:customCommandExtension', {command: 'dragAndDropWithCommandExtension', args: payload}

# equals to 
# driver.execute_script("flutter:dragAndDropWithCommandExtension", payload)

…s like 'getTextWithCommandExtension' 'dragAndDropWithCommandExtension'
@linux-foundation-easycla
Copy link

CLA Not Signed

@Alpaca00
Copy link
Contributor

Alpaca00 commented Jul 9, 2025

I see the logic in this solution, but it also feels a bit inconsistent.

New kind command extensions possibly made by others may stay outside this project, so we won't see unique solutions or examples.

It would be better to include the new command as a proper commandExtension, with a description in the README and an example in this folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants